﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/defaultLayout.master" CodeFile="Default.aspx.cs" Inherits="bestellen_Default" %>
<%@ MasterType  virtualPath="~/defaultLayout.master"%>
<asp:Content ID="maincontent" ContentPlaceHolderID="main" runat="server">
    <div class="content">
        <br />
        <div id="movieInfo">
            <div id="movieMedia">
                <asp:Image ID="movieImg" height="250px" runat="server" />
            </div>
            <br />
            <div id="movieName">
                <asp:Label ID="movTitle" runat="server" />
            </div>
            <br />
            <div id="movieRated">
                <asp:Repeater ID="movieRatedRepeater" runat="server">
                    <ItemTemplate>
                        <asp:Image Width="25px" runat="server" ImageUrl='<%# Eval("kijkwijzer_symbool") %>' />
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div id="movieGenres">
                <asp:Label id="genre" CssClass="bold" Text="Genre:" runat="server" />
                <asp:Label ID="movGenres" runat="server" />
            </div>
            <div id="movieLength">
                <asp:Label ID="length" CssClass="bold" Text="Duur:" runat="server" />
                <asp:Label ID="movLength" runat="server" />
                <asp:Label ID="minutes" runat="server" Text="minuten" />
            </div>
            <div id="movieProducer">
                <asp:Label ID="producer" CssClass="bold" Text="Regie:" runat="server" />
                <asp:Label ID="movProducer" runat="server" />
            </div>
            <br />
        </div>
        <div id="ticketInfo">
            <div id="tickets">
                <asp:ScriptManager runat="server" />
                <asp:UpdatePanel runat="server">
                    <ContentTemplate>
                        <asp:Label runat="server" ID="lblNotification" />
                        <table>
                            <tr>
                                <td style="width:250px"><asp:Label ID="date" Text="Datum:" runat="server" /></td>
                                <td><asp:DropDownList ID="ddlPlanning"  OnSelectedIndexChanged="ddlPlanning_SelectedIndexChanged" AutoPostBack="true" runat="server"></asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td><asp:Label ID="time" Text="Tijd:" runat="server" /></td>
                                <td>
                                    <asp:RadioButtonList OnSelectedIndexChanged="rblTimes_SelectedIndexChanged" AutoPostBack="true" ID="rblTimes" RepeatDirection="Horizontal" runat="server"></asp:RadioButtonList>
                                    <asp:Label runat="server" Visible="false" ID="noTimes" Text="Er zijn geen tijden meer beschikbaar voor deze dag." />
                                </td>
                            </tr>
                            <tr>
                                <td><br /><br /></td>
                            </tr>
                            <asp:ListView runat="server" OnItemDataBound="availableTickets_ItemDataBound" ID="availableTickets">
                                <ItemTemplate>
                                    <tr>
                                        <td style="width:250px">
                                            <asp:HiddenField runat="server" ID="ticketID" Value='<%# Eval("kaart_soort_id") %>' />
                                            <asp:Label runat="server" CssClass="bold" ID="ticketName"/>
                                        </td>
                                        <td><asp:DropDownList runat="server" ID="ticket" /></td>
                                    </tr>
                                </ItemTemplate>
                            </asp:ListView>
                            <tr visible="false" runat="server" id="glassesTR">
                                <td style="width:250px"><asp:Label runat="server" CssClass="bold" ID="glassesName" Text='3D Bril:' /></td>
                                <td><asp:DropDownList runat="server" ID="glasses" /></td>
                            </tr>
                            <tr>
                                <td><br /></td>
                            </tr>
                            <tr visible="false" runat="server" id="subscriptionTR">
                                <td style="width:250px"><asp:Label runat="server" CssClass="bold" ID="subscriptionName" /></td>
                                <td><asp:DropDownList runat="server" ID="subscription" /></td>
                            </tr>
                        </table>
                        <br /><br />
                        <div id="orderButtons">
                            <asp:Button CssClass="headerButton" runat="server" OnClick="buy_Click" ID="buy" Text="Bestellen" Visible="False" />
                            <asp:Button CssClass="headerButton" runat="server" OnClick="reserve_Click" ID="reserve" Text="Reserveren" Visible="False" />
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
        <div class="clearDiv" ></div>
    </div>
</asp:Content>